* {
	padding: 0;
	margin: 0;
}
ul{
    list-style: none;
}

body{
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 搜索框 */
.container {
	display: flex;
	height: 40px;
	background-color: #ff0000;
	align-items: center;
}

.container .city {
	width: 60px;
	height: 40px;
	text-align: center;
	font-size: 16px;
	line-height: 40px;
	font-weight: normal;
	color: white;
}

.container .login {
	width: 60px;
	height: 40px;
	text-align: center;
	font-size: 16px;
	line-height: 40px;
	font-weight: normal;
	color: white;
}

.container input {
	flex: 1;
	height: 30px;
	border: none;
	outline: none;
	border-radius: 8px;
	text-indent: 5px;
}

.g-wrapper{
    flex: 1;
    height: calc(100vh-40px-60px);
    overflow: scroll;
}

.category-wrapper {
	display: flex;
	flex-wrap: wrap;
	width: 100%;
	margin-top: 10px;
}

.category-wrapper .box {
	width: 20%;
	text-align: center;
}

.category-wrapper .box img {
	width: 40px;
	height: 40px;
	border-radius: 50%;
}

.category-wrapper .box p {
	text-align: center;
}

.g-list {
	padding: 10px;
}

/* 列表 */
.g-list .goods {
	display: flex;
	background-color: rgb(251, 250, 249);
	margin-top: 10px;
}

.g-list .goods img {
	width: 100px;
	height: 100px;
	margin-right: 10px;
}

.g-list .goods .g-right {
	line-height: 22px;
	position: relative;
	width: 100%;
}

.g-list .goods .g-right h2 {
	font-weight: normal;
	font-size: 18px;
}

.g-list .goods .g-right .m-price {
	position: absolute;
	bottom: 2px;
	left: 2px;
}

.g-list .goods .g-right .m-sale {
	position: absolute;
	bottom: 2px;
	right: 2px;
}

/* footer样式 */
/* 元素水平排列： 1. display:inline-block;  2. float:left; 
             3. dispay: flex;
        */
.g-footer {
	display: flex;
	justify-content: space-around;
	align-items: center;
	height: 60px;
	background-color: #f3f4f6;
}
.g-footer .active {
	color: red;
}
